import { createApp } from 'vue';
import App from './App.vue';
import './assets/global.less';
import components from './components/global';
import Router from './router/index';

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';

// 国际化
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
dayjs.locale('zh-cn');


const app = createApp(App)
app.config.productionTip = false


// components
for (const i in components) {
  app.component(i, components[i])
}

app.use(Router).use(Antd).mount('#app')
